Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG] l10n_uy_reports: Migration to 18.0 #258

Closed
wants to merge 1 commit into from

Conversation

mem-adhoc
Copy link
Contributor

No description provided.

@roboadhoc
Copy link
Contributor

@mem-adhoc mem-adhoc force-pushed the 18.0-mig-l10n_uy_reports branch from cb8397c to 7c24be1 Compare November 4, 2024 16:03
@mem-adhoc mem-adhoc force-pushed the 18.0-mig-l10n_uy_reports branch from 7c24be1 to 88d6ddc Compare December 10, 2024 17:40
@jue-adhoc jue-adhoc force-pushed the 18.0-mig-l10n_uy_reports branch 2 times, most recently from a899e88 to ef2a85e Compare December 20, 2024 19:20
@@ -199,7 +200,7 @@ def action_get_files(self):
if self.company_id.country_id.code != 'UY':
raise UserError(_("Solo puede generar este reporte para compañias Uruguayas"))

data = getattr(self, '_get_form_%s_data' % self.uy_form_id)()
data = getattr(self, '_get_form_%s_data' % self.uy_form_id)() if self.uy_form_id else None

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

esto es porque el wizard tiene un campo selection para poner el formulario correspondiente, y si no seleccionabas ningun formulario saltaba un traceback

@jue-adhoc jue-adhoc force-pushed the 18.0-mig-l10n_uy_reports branch 3 times, most recently from ab5937b to 5a99a74 Compare December 23, 2024 19:06

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Todos los cambios realizados sobre las queries y el uso de la tool SQL lo tomé de cambios realizados en l10n_ar_reports de Odoo enterprise
https://github.com/odoo/enterprise/commit/eeaa8d3b31d8efccd42b8705ba387527a39dfb57

@jue-adhoc jue-adhoc force-pushed the 18.0-mig-l10n_uy_reports branch from 5a99a74 to 8cf46d2 Compare December 26, 2024 17:17
newUyVatBookTaxTypes[taxType]["selected"] = !newUyVatBookTaxTypes[taxType]["selected"];
this.filterClicked({ optionKey: "uy_vat_book_tax_types_available", optionValue: newUyVatBookTaxTypes, reload: true});
},
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corregir en lint

@@ -0,0 +1,27 @@
import { _t } from "@web/core/l10n/translation";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

necesitamos esta línea?

).filter((type) => type.selected);

if (selectedTypes.length === availableTypes.length || selectedTypes.length === 0) {
return _t("All");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return _t("All");
return "All";

quizás habría que hacer esto?

@jue-adhoc jue-adhoc force-pushed the 18.0-mig-l10n_uy_reports branch from 8cf46d2 to e369992 Compare December 30, 2024 13:25
@pablohmontenegro
Copy link
Contributor

@roboadhoc r+

@roboadhoc roboadhoc closed this in 5f1aede Dec 30, 2024
@roboadhoc roboadhoc added the 17.1 label Dec 30, 2024
@zaoral zaoral deleted the 18.0-mig-l10n_uy_reports branch January 2, 2025 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants